]> dgit.raspbian.org Git - gnome-shell.git/commit
tests/unit: Access shell sources from resource
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 10 Aug 2023 15:50:08 +0000 (17:50 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 10 Aug 2023 17:42:23 +0000 (17:42 +0000)
commit9546860d053243152069ee35e57bf64cf1096a3b
treeaf3127475e5f4166e9e047acd58f6d1958f09ee2
parent09525ece8c95450d6dee2575729572b10f769a11
tests/unit: Access shell sources from resource

Unit tests currently load shell sources directly from the
filesystem.

This is currently blocking generated sources - namely config.js - to
ESM, because a relative import from the source dir will fail to
locate the file in the build dir.

Address this by using the same GResource as gnome-shell instead of
direct filesystem access, as the resource will always include all
sources files at the expected location.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2880>
src/meson.build
tests/unit/highlighter.js
tests/unit/injectionManager.js
tests/unit/insertSorted.js
tests/unit/jsParse.js
tests/unit/markup.js
tests/unit/params.js
tests/unit/signalTracker.js
tests/unit/url.js
tests/unit/versionCompare.js